//
//  PWFactory.m
//  PurchaseWorld
//
//  Created by chenfangkun on 2018/7/13.
//  Copyright © 2018年 chenfangkun. All rights reserved.
//

#import "PWFactory.h"

@implementation PWFactory

+ (float)pw_ratio {
    if (kIsiPhone4) {
        return 0.85f;
    } else if (kIsiPhone5) {
        return 0.90f;
    } else if (kIsiPhone6_OR_7) {
        return 1.0f;
    } else if (kIsiPhone6Plus_OR_7Plus) {
        return 1.15f;
    } else if (kIsiPhoneXPlus) {
        return 1.08f;
    } else if (kIsiPhoneXR) {
        return 1.10f;
    } else if (kIsiPhoneXS) {
        return 1.15f;
    } else if (kIsiPhoneXS_Max) {
        return 1.2f;
    } else {
        return 0.90f;
    }
}

@end
